package com.javaee.weixin.util;

/**
 * 网页授权access_token
 * 
 */
public class OAuth2AccessToken {

  private String accessToken;
  private long expiresIn;
  private String refreshToken;// 用户刷新access_token
  private String openId;// 用户唯一标识
  private String code;
  // 获取票据的时间戳
  private long timestamp = System.currentTimeMillis() / 1000;

  public String getAccessToken() {
    return accessToken;
  }

  public void setAccessToken(String accessToken) {
    this.accessToken = accessToken;
  }

  public long getExpiresIn() {
    return expiresIn;
  }

  public void setExpiresIn(long expiresIn) {
    this.expiresIn = expiresIn;
  }

  public String getRefreshToken() {
    return refreshToken;
  }

  public void setRefreshToken(String refreshToken) {
    this.refreshToken = refreshToken;
  }

  public String getOpenId() {
    return openId;
  }

  public void setOpenId(String openId) {
    this.openId = openId;
  }


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public long getTimestamp() {
    return timestamp;
  }

  public void setTimestamp(long timestamp) {
    this.timestamp = timestamp;
  }

}
